var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.sendNormalTalk("只有勤奋修炼的人才能带过来黑龙之角……给我黑龙之角的话，嘿嘿，说不定会获得非常诱人的奖励哦……", 0, 9310102, false, true)
        } else {
            if (status === a++) {
                cm.sendNormalTalk("你再确认下你是不是真的有黑龙之角吧。", 0, 9310102, true, false);
                cm.dispose()
            }
        }
    }
};